/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import play.db.jpa.Model;

/**
 *
 * @author GJean
 */
@Entity
@Table(name = "forumpost")
public class forumPost extends Model {

    public String name;
    public String resume;
    public String contenu;
    public Date date;
    public Date updated;
    @ManyToOne
    public User user;
    @ManyToOne
    public forumSubject forumSubject;

    public forumPost(
            String name,
            String resume,
            String contenu,
            Date date,
            Date updated,
            User user,
            forumSubject forumSubject) {
        this.name = name;
        this.resume = resume;
        this.contenu = contenu;
        this.date = date;
        this.updated = updated;
        this.user = user;
        this.forumSubject = forumSubject;
    }
}